/*
 * @Descripttion: donglyc
 * @version:
 * @Author: donglyc
 * @Date: 2021-01-28 14:12:07
 * @LastEditors: donglyc
 * @LastEditTime: 2021-02-08 11:36:53
 */
import request from '@/utils/request';

/**
 * 根据作品ID查询作品评论接口
 * @param params
 */
export function queryByWorkIdComment(params: any): Promise<any> {
  return request('/sealCuttingApi/worksComment/queryByWorkIdComment', {
    params,
  });
}

/**
 * 新增作品评论接口
 * @param params
 */
export function insertWorksComment(data: any): Promise<any> {
  return request('/sealCuttingApi/worksComment/insertWorksComment', {
    method: 'POST',
    data,
  });
}

/**
 * 根据作品ID查询词条详情
 * @param params
 */
export function queryByIdEntry(params: any): Promise<any> {
  return request('/sealCuttingApi/entryInfo/queryByIdEntry', {
    method: 'get',
    params,
  });
}
